package com.rd.student.jiaji.class3.sunguowei.day0802.CountPractice;

public class Test8 {
    public static String toString(int[] arr){
        String a="[";
        for (int i = 0; i < arr.length; i++) {
            a+=arr[i];
            if(i!=arr.length-1){
                a+=",";
            }

        }
        a+="]";
        return a;
    }

    public static void main(String[] args) {
        int[] arr = {1, 2, 3};
        String a = toString (arr);
        System.out.println(a);
    }
}
